<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="pageContent">
	<form method="post" action="<c:url value='/customerCall/add?navTabId=customerCallList&callbackType=closeCurrent'/>"
		class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>日期：</label> <input name="contactDate" class="required date" type="text" readonly="true" dateFmt="yyyy-M-d"
					value="${currentDate}" /> <a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>客户名称：</label> <input name="customer" type="text" class="required" size="30" value="" lookupGroup="" /> <a
					class="btnLook" href="<c:url value='/showCustomerLookup'/>" lookupGroup="">查找带回</a>
			</p>
			<p>
				<label>客户类型：</label> <input name="customerType" type="text" class="required" size="30" value=""
					suggestFields="customerType" suggestUrl="<c:url value='/showCustomerTypeSuggest' />" lookupGroup="" />
			</p>
			<p>
				<label>地址：</label> <input name="address" type="text" size="30" value="" />
			</p>
			<p>
				<label>联系人：</label> <input name="contacts" type="text" class="required" size="30" value="" />
			</p>
			<p>
				<label>部门：</label> <input name="department" type="text" class="required" size="30" value="" />
			</p>
			<p>
				<label>职务：</label> <input name="job" type="text" class="required" size="30" value="" />
			</p>
			<p>
				<label>座机：</label> <input name="telephone" type="text" class="phone" size="30" value="" />
			</p>
			<p>
				<label>手机：</label> <input name="phone" type="text" class="phone" size="30" value="" />
			</p>
			<p>
				<label>传真：</label> <input name="fax" type="text" class="phone" size="30" value="" />
			</p>
			<p>
				<label>其他联系方式：</label> <input name="otherContact" type="text" size="30" value="" />
			</p>
			<p>
				<label>需求：</label> <input name="requirment" type="text" class="required" size="30" value="" />
			</p>
			<p>
				<label>备注：</label> <input name="remarks" type="text" class="text" size="30" value="" />
			</p>
			<p>
				<label>结果：</label> <select name="result" class="required combox">
					<option value="">请选择</option>
					<c:forEach var="item" items="${resultList}">
						<option value="${item.contactResult}">${item.contactResult}</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>业务员：</label> <input name="salesman" type="text" class="required" size="30" value="${sessionInfo.realname}"
					<c:if test="${sessionInfo.role != '业务员'}"> suggestFields="salesman"
					suggestUrl="<c:url value='/showSalesmanSuggest' />" lookupGroup="" </c:if>
					<c:if test="${sessionInfo.role == '业务员'}">readonly="readonly"</c:if> />
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">确定</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>
